﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="sms_received.aspx.cs" Inherits="CentralOffice.WebClient.desktop.sms.sms_received" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>已接收短信</title>
<link rel="stylesheet" type="text/css" href="../../theme/2/sms.css">
<script src="../../inc/mytable.js"></script>
<link rel="stylesheet" type="text/css" href="../../theme/2/style.css">
<script src="../../inc/js/ccorrect_btn.js"></script>
<script Language=JavaScript>
function show_msg(SMS_ID, start)
{
	if($('tr'+SMS_ID).style.display=='block')
	{
	   $('tr'+SMS_ID).style.display='none'
	   $('img'+SMS_ID).src="/images/collapsed.gif";
	   return;
	}
	$('tr'+SMS_ID).style.display='block';
	$('img'+SMS_ID).src="/images/expanded.gif";
	if($('msg'+SMS_ID).innerHTML.toLowerCase().indexOf("</div>")>0)
	   return;
	
	$('msg'+SMS_ID).innerHTML="<img src='/images/loading.gif' height='20' width='20' align='absMiddle'> 加载中，请稍候……";

	var req=getXMLHttpObj();
	req.open("GET","../show_msg.php?SMS_ID="+SMS_ID+"&start="+start,true);
	req.onreadystatechange=function(){if(req.readyState==4)$("msg"+SMS_ID).innerHTML=req.responseText;};
	req.send(null);
}

</script>

</head>
<body class="bodycolor" topmargin="5">
<form id="Form1" name="form1" method=post runat=server>
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
  <tr>
    <td class="Big"><img src="../../images/email_close.gif" WIDTH="20" HEIGHT="20" align="absmiddle"><span class="big3"> 已接收的短信息</span><br>
    </td>
  </tr>
</table>
<br>
<table class="TableList"  align="center" width="100%">
  <tr>
    <td class="Big">
    <huag:OAGridView id="gv_Sms" runat="server" DataKeyNames="SmsId" skinid="DefaultGridView" ConfirmDelete="true" DataSourceID="odsReceivedSms" EnableViewState="false" OnRowDataBound="gv_Sms_RowDataBound">
   <Columns>
   
   <huag:InputCheckBoxField HeaderText=""></huag:InputCheckBoxField>
            <asp:BoundField HeaderText="发送人" DataField="FromName"  >
            </asp:BoundField>
            <asp:BoundField HeaderText="内容" DataField="Content"  >
            </asp:BoundField>
            <asp:BoundField HeaderText="发送时间" DataField="SendTime"  >
            </asp:BoundField>
       <asp:HyperLinkField DataNavigateUrlFormatString="sms_show.aspx?stype=seek&id={0}" target="_blank" DataNavigateUrlFields="SmsId" Text="查看" ></asp:HyperLinkField>

   </Columns>
</huag:OAGridView><asp:ObjectDataSource id="odsReceivedSms" runat="server" TypeName="CentralOffice.MyTable.BusinessActions.ViewSms" SelectMethod="Find" OnSelecting="odsSms_Selecting">
 <SelectParameters><asp:Parameter Name="whereClause" Type=string/></SelectParameters>
</asp:ObjectDataSource>
    </td>
  </tr>
  <tr class="TableControl">
<td >&nbsp;&nbsp;
    <img src="../../images/delete.gif" align="absMiddle"><asp:LinkButton ID="lnkDel"
        runat="server" OnClick="lnkDel_Click" OnClientClick="return confirm('确定要删除吗?');" >删除</asp:LinkButton>
    &nbsp;&nbsp;
    <img src="../../images/delete.gif" align="absMiddle">&nbsp;
    <asp:LinkButton ID="lnkCancel" runat="server" OnClick="lnkCancel_Click"  OnClientClick="return confirm('确定要取消提醒吗?');" >取消提醒</asp:LinkButton></td>
</tr>
  </table>
</form>
</body>
</html>